<?php require_once("conn.php");
	  require_once("GetSQLValueString.php");
	session_start();
	if(!(isset($_SESSION['MM_Username']))){
		header("Location: index.php");
	}

	mysql_select_db($dataname,$conn);
	$query_rs_types = "select * from types order by type_id ASC";
	mysql_query("set names 'gbk'");
	$rs_types = mysql_query($query_rs_types,$conn) or die(mysql_error());
	$row_rs_types = mysql_fetch_assoc($rs_types);

	mysql_select_db($dataname,$conn);
	$query_rs_articles = "select * from articles order by article_id DESC";
	mysql_query("set names 'gbk'");
	$rs_articles = mysql_query($query_rs_articles) or die(mysql_error());
	$row_rs_articles = mysql_fetch_assoc($rs_articles);

	mysql_select_db($dataname,$conn);
	$query_rs_config = "select * from config";
	$rs_config = mysql_query($query_rs_config,$conn) or die(mysql_error());
	$row_rs_config = mysql_fetch_assoc($rs_config);

	include('templates/tadmin_list.php');
	mysql_free_result($rs_articles);
	mysql_free_result($rs_config);
	mysql_free_result($rs_types);
?>